import request from '@/utils/request'

// 查询专家擅长领域列表
export function listExpertDomain(query) {
  return request({
    url: '/business/domain/list',
    method: 'get',
    params: query
  })
}

// 查询专家擅长领域详细
export function getExpertDomain(id) {
  return request({
    url: '/business/domain/' + id,
    method: 'get'
  })
}

// 新增专家擅长领域
export function addExpertDomain(data) {
  return request({
    url: '/business/domain',
    method: 'post',
    data: data
  })
}

// 修改专家擅长领域
export function updateExpertDomain(data) {
  return request({
    url: '/business/domain',
    method: 'put',
    data: data
  })
}

// 删除专家擅长领域
export function delExpertDomain(id) {
  return request({
    url: '/business/domain/' + id,
    method: 'delete'
  })
}
